using System;
using System.Collections.Generic;
using System.Text;
using Menfram.DAL.Reflection;

namespace Entity
{
    [Table(TableName = "sys.objects", SequenceName = "id", KeyName = "id", ClassName = "Entitys.Banco")] 
    public class Banco
    {
        public override string ToString()
        {
            if (PInstanciaNome == string.Empty) {
                return PServerNome;
            }
            return PServerNome + "\\" + PInstanciaNome;
        }
        private String PServerNome;

        [Field(FieldName = "name")]
        public String ServerNome
        {
            get { return PServerNome; }
            set { PServerNome = value; }
        }

        private String PInstanciaNome;
        public String InstanciaNome
        {
            get { return PInstanciaNome; }
            set { PInstanciaNome = value; }
        }

    }
}
